<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <script src="layui/layui.js"  charset="utf-8"></script>
    <link rel="stylesheet" href="kindeditor/themes/default/default.css">
    <script src="kindeditor/kindeditor.js"></script>
        <script src="kindeditor/lang/zh_CN.js"></script>
        <script>
            KindEditor.ready(function(K) {
                var editor = K.editor({
                    allowFileManager : true
                });
               
                K('#image3').click(function() {
                    editor.loadPlugin('image', function() {
                        editor.plugin.imageDialog({
                            showRemote : false,
                            imageUrl : K('#url3').val(),
                            clickFn : function(url, title, width, height, border, align) {
                                K('#url3').val(url);
                                editor.hideDialog();
                            }
                        });
                    });
                });
            });
        </script>
</head>
<body>
    <form class="layui-form" action="slide_add_pass.php" method="post" name="form1" id="form1">
        <table class="layui-table">
            <tr>
                <td colspan="2">添加幻灯</td>
            </tr>
            <tr><td>*标题:</td><td><input type="text" name="title"></td></tr>
            <tr>
                <td>链接:</td>
                <td><input type="text" name="lianjie"></td>
            </tr>
            <tr>
                <td>*缩略图:</td>
                <td><input type="text" name="tupian" id="url3" value="" /> <input class="layui-btn layui-btn-mini" type="button" id="image3" value="选择图片" />（本地上传）</td>
            </tr>
            <tr>
                <td colspan="2"><input class="layui-btn layui-btn-small" type="submit" value="提交"></td>
            </tr>
        </table>
    </form>
</body>
</html>